/**
 * 页面字典支持
 * Created by 严秋旺 on 2017/3/19.
 */
(function (window) {
    var _URL = window.LC.MASTER_URI + '/system/dictionary/item.do';
    var longDict = function () {
    };
    var dictMap = {};
    longDict.getDicts = function (id) {
        if (dictMap[id] == undefined) {
            $.ajax({
                url: _URL,
                type: 'post',
                dataType: 'json',
                async: false,
                success: function (rs) {
                    dictMap[id] = dict;
                }
            });
        }
        return dictMap[id];
    };
    window.longDict = window.LD = longDict;
})(window);